package cug.example.learningservice.service.impl;

import cug.example.learningdao.Entity.Demo;
import cug.example.learningdao.Dao.jpa.DemoRepository;
import cug.example.learningservice.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class DemoServiceImpl implements DemoService {

    @Autowired
    private DemoRepository demoRepository;

    @Override
    public Demo addOne(Demo demo) {
        return demoRepository.save(demo);
    }

}
